﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Calendarizacion_URL
{
    public partial class Login : Form
    {
        Form padre;
        public Login(Form padre)
        {
            InitializeComponent();
            this.padre = padre;
        }

        private void Login_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            padre.Enabled = true;
            this.Dispose();
        }

        private void button1_Click(object sender, EventArgs e)
        {            
            this.Dispose();
            padre.Dispose();
        }        
    }
}
